package com.jwthhealth_pub.wristband.service.model;

import com.jwthhealth_pub.common.DataUtil;

import java.util.List;

/**
 * 睡眠数据
 * Created by liuzhen on 2017/12/12.
 */

public class SleepTimeModule {

    public SleepTimeModule(String startSleepTime, String endSleepTime, String awakTime, String lightSleepTime, String deepSleepTime, List<String> houtsData) {
        this.startSleepTime = startSleepTime;
        this.endSleepTime = endSleepTime;
        this.awakTime = awakTime;
        this.lightSleepTime = lightSleepTime;
        this.deepSleepTime = deepSleepTime;
        this.hoursData = houtsData;
    }

    private String startSleepTime;
    private String endSleepTime;
    private String awakTime;
    private String lightSleepTime;
    private String deepSleepTime;
    private  List<String> hoursData;

    public String getStartSleepTime() {
        return startSleepTime;
    }

    public String getEndSleepTime() {
        return endSleepTime;
    }

    public String getAwakTime() {
        return awakTime;
    }

    public String getLightSleepTime() {
        return lightSleepTime;
    }

    public String getDeepSleepTime() {
        return deepSleepTime;
    }

    public List<String> getHoursData() {
        return hoursData;
    }

    @Override
    public String toString() {
        return "睡眠开始时间:"+ DataUtil.timeStamp2Date(startSleepTime, null)
                + " 睡眠结束时间:" + DataUtil.timeStamp2Date(endSleepTime, null)
                + " 清醒时间:" + awakTime
                + "分 浅睡眠:" + lightSleepTime
                + "分 深睡眠:" + deepSleepTime + " 分 "
                + " 每小时段的活跃指数:"+hoursData.toString();
    }
}
